/**
 * Created by IntelliJ IDEA.
 * User: Egor
 * Date: 12.01.12
 * Time: 16:14
 * To change this template use File | Settings | File Templates.
 */
package org.electronic.registration.service {
public class PatientService {
    private var patientService:RemoteService;


    public function PatientService(additionalFaultHandler:Function = null) {
        patientService = new RemoteService("patientService");
        if (additionalFaultHandler != null) {
            patientService.addFaultHandler(additionalFaultHandler);
        }
    }

    public function getAllPatients(handler:Function):void {
        patientService.getAllPatients(handler);
    }

    public function getPatientByName(name:String, handler:Function):void {
        patientService.getPatientByName(name, handler);
    }

    public function isPatientExist(email:String, password:String, handler:Function):void {
        patientService.isPatientExist(email, password, handler);
    }
}
}
